using System.Configuration;
using System.Xml;

/*	-----------------------------------------------------------------------	
	Copyright:	umlungu consulting (pty) ltd
	Author:		Alan Benington	
	Started:	2005-09-08
	Status:		release
	Version:	1.0.3
	Build:		20070124
	License:	GNU General Public License
	-----------------------------------------------------------------------	*/
	
/*	-----------------------------------------------------------------------	
	Development Notes:
	==================
	20070124:
	This class provides a utility class for xml configuration sections in 
	a web.config file, rather than using the appSettings element. It also 
	allows more complex configurations using nested xml elements.
	The web.config will typically require the following:
	<configSections>
	   <section name="engineX" type="umlungu.engineX.x_config,engineX" />
	</configSections>
	
	-----------------------------------------------------------------------	*/
	
namespace umlungu.engineX {
	/// <summary>
	/// umlungu EngineX class. 
	/// class for the EngineX status xml.
	/// </summary>
	public class x_configHandler : IConfigurationSectionHandler {
		
		#region Public Instance Constructors
		/// <summary>Default constructor</summary>
		public x_configHandler() {
		}
		#endregion Public Instance Constructors

		#region Implementation of IConfigurationSectionHandler
		/// <summary>
		/// Parses the configuration section.
		/// </summary>
		/// <param name="parent">The configuration settings in a corresponding parent configuration section.</param>
		/// <param name="configContext">The configuration context when called from the ASP.NET configuration system. Otherwise, this parameter is reserved and is a null reference.</param>
		/// <param name="section">The <see cref="XmlNode" /> for the log4net section.</param>
		/// <returns>The <see cref="XmlNode" /> for the log4net section.</returns>
		/// <remarks>
		/// <para>
		/// Returns the <see cref="XmlNode"/> containing the configuration data,
		/// </para>
		/// </remarks>
		public object Create(object parent, object configContext, XmlNode section) {
			return section;
		}
		#endregion Implementation of IConfigurationSectionHandler
	}
}
